Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OV-43: Add PWA #47

Merged
merged 9 commits into from
Aug 30, 2024
Merged

OV-43: Add PWA #47

merged 9 commits into from
Aug 30, 2024

Conversation

WilsonBravo
Copy link
Contributor

I configured the Vite PWA plugin with next settings:

  • registerType: 'autoUpdate': Ensures the service worker updates automatically in the background.
  • injectRegister: false: Disables automatic script injection, allowing for manual control if needed.
  • pwaAssets: Enabled asset generation to ensure all necessary icons and resources are created.
  • manifest: Defines the app's name, theme color, and description to enhance its appearance and identity on user devices.
  • workbox: Configured caching with specific patterns, cleanup of outdated caches, and immediate control of pages.
  • devOptions: Enabled the service worker in development, set up fallback handling, suppressed non-critical warnings, and used module type for the service worker.

@WilsonBravo WilsonBravo added the FE Fronted feature label Aug 22, 2024
@WilsonBravo WilsonBravo self-assigned this Aug 22, 2024
@WilsonBravo WilsonBravo linked an issue Aug 22, 2024 that may be closed by this pull request
o-nedashkivska
o-nedashkivska previously approved these changes Aug 22, 2024
JKaypa
JKaypa previously approved these changes Aug 22, 2024
"vite": "5.4.0"
"vite": "5.4.0",
"vite-plugin-pwa": "0.20.1",
"workbox-core": "7.1.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I understand, the Vite PWA plugin will use the Workbox Core library to interact with and build the service worker.
https://vite-pwa-org.netlify.app/workbox/

@anton-otroshchenko
Copy link
Collaborator

Please fix conflicts

@WilsonBravo WilsonBravo added this to the Release 1.0 milestone Aug 28, 2024
@anton-otroshchenko anton-otroshchenko merged commit 4dbbb89 into next Aug 30, 2024
2 checks passed
@anton-otroshchenko anton-otroshchenko deleted the task/OV-43-add-pwa branch August 30, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE Fronted feature
Projects
Status: To Be Tested
Development

Successfully merging this pull request may close these issues.

FEAT: Add PWA
5 participants